package com.ruoyi.wx.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 车型对象 car_type
 * 
 * @author wx
 * @date 2025-05-12
 */
public class CarType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 所属品牌id（关联car_brand.id） */
    @Excel(name = "所属品牌id", readConverterExp = "关=联car_brand.id")
    private Long bid;

    /** 车型 */
    @Excel(name = "车型")
    private String name;

    /** 颜色 */
    @Excel(name = "颜色")
    private String color;

    /** 图片url */
    @Excel(name = "图片url")
    private String img;

    /** 删除状态（0未删除、1已删除） */
    private Long deleted;

    /** 保留字段1 */
    private String reserved1;

    /** 保留字段2 */
    private String reserved2;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setBid(Long bid) 
    {
        this.bid = bid;
    }

    public Long getBid() 
    {
        return bid;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setColor(String color) 
    {
        this.color = color;
    }

    public String getColor() 
    {
        return color;
    }

    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }

    public void setDeleted(Long deleted) 
    {
        this.deleted = deleted;
    }

    public Long getDeleted() 
    {
        return deleted;
    }

    public void setReserved1(String reserved1) 
    {
        this.reserved1 = reserved1;
    }

    public String getReserved1() 
    {
        return reserved1;
    }

    public void setReserved2(String reserved2) 
    {
        this.reserved2 = reserved2;
    }

    public String getReserved2() 
    {
        return reserved2;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("bid", getBid())
            .append("name", getName())
            .append("color", getColor())
            .append("img", getImg())
            .append("deleted", getDeleted())
            .append("reserved1", getReserved1())
            .append("reserved2", getReserved2())
            .toString();
    }
}
